package com.shanghaionstar.home.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;

import rx.Subscription;

/**
 * 这个service 单纯 load profile 和 service commands
 * Created by 6335yz on 2016/10/26.
 */
public class RefreshCommandsService extends Service {

    private Subscription subscription;

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }


    @Override
    public void onCreate() {
        super.onCreate();
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        if (subscription != null && !subscription.isUnsubscribed()) {
            subscription.unsubscribe();
        }
    }
}
